<include file="Public:pagerForm" />
<!-- 主页面开始 -->
<SCRIPT LANGUAGE="JavaScript">
	<!--
	function listColumn(id){
		window.location = '__URL__/index/column_id/'+id;
	}
	function selectColumn(){
		var result= PopModalWindow('__APP__/Column/treeSelect/',268,365);
		if(typeof(result) == "undefined") return;
		$('columnName').value=result[0][0];
		$('column_id').value=result[0][1];
	}

	//-->
</SCRIPT>   
<form name="ruku" enctype="application/x-www-form-urlencoded" method="post"  action="__URL__/act_stockout" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
<!-- 主体内容  -->
<div class="pageHeader">
	
		<table width="100%" border="0"><input type="hidden" name="id" value="{$vo.id}" /><input type="hidden" name="spec" value="stockout" />
			<tr>
			<td>本次出库标题标题</td><td><input name="title"  type="text" value="{$vo.title}"/></td>
			<td>出库类型</td><td><select name="type" id="type">
			<option value="0">客用产品</option>
			<option value="1">其他用品</option>
			<option value="2">耗材</option>
			<option value="3">固定资产</option>
			</select></td>
			<td>选择仓库</td>
			<td><select name="store" id="store">
			<option value="0">总库</option>
			<option value="1">南翔店</option>
			<option value="2">浦东店</option>
			</select></td>
			</tr>
		</table>
	
</div>
<div class="pageContent" >
	<!-- 列表显示区域  -->
	<div class="list" >
		<table width="100%" border="0" style="margin:15px 0">  
		<tr>
		<td>出库项目明细</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		</tr>
		<tr>
		<td>序号</td>
		<td>系列</td>
		<td>品名</td>
		<td>规格</td>
		<td>编号</td>
		<td>出库数量</td>
		<td><input type="button"  id="additem" value="增加条目"  onclick="addstockoutitem()" /></td>
		</tr>
		<tr class="goods" style="display:none;"></tr>
		<tr class="goods">
		  <td><span class="order">1</span></td>
		  <td><input type="text" name="items[][brand]"/></td>
		  <td><input type="text" name="items[][product_name]"/></td>
		  <td><input type="text" name="items[][unit]"/></td>
		  <td><input type="text" name="items[][product_code]"/></td>
		  <td><input type="text" name="items[][number]"/></td>
		  <td><input type="button"  value="移除条目"  onclick="removestockitem(event)"/></td>
		  </tr>
		<tr class="goods">
		  <td><span class="order">2</span></td>
		  <td><input type="text" name="items[][brand]"/></td>
		  <td><input type="text" name="items[][product_name]"/></td>
		  <td><input type="text" name="items[][unit]"/></td>
		  <td><input type="text" name="items[][product_code]"/></td>
		  <td><input type="text" name="items[][number]"/></td>
		  <td><input type="button"  value="移除条目"  onclick="removestockitem(event)"/></td>
		</tr>
		<tr class="goods">
		  <td><span class="order">3</span></td>
		  <td><input type="text" name="items[][brand]"/></td>
		  <td><input type="text" name="items[][product_name]"/></td>
		  <td><input type="text" name="items[][unit]"/></td>
		  <td><input type="text" name="items[][product_code]"/></td>
		  <td><input type="text" name="items[][number]"/></td>
		  <td><input type="button"  value="移除条目"  onclick="removestockitem(event)"/></td>
		</tr>
		<tr class="goods">
		  <td><span class="order">4</span></td>
		  <td><input type="text" name="items[][brand]"/></td>
		  <td><input type="text" name="items[][product_name]"/></td>
		  <td><input type="text" name="items[][unit]"/></td>
		  <td><input type="text" name="items[][product_code]"/></td>
		  <td><input type="text" name="items[][number]"/></td>
		  <td><input type="button"  value="移除条目"  onclick="removestockitem(event)"/></td>
		</tr>
		<tr class="goods">
		  <td><span class="order">5</span></td>
		  <td><input type="text" name="items[][brand]"/></td>
		  <td><input type="text" name="items[][product_name]"/></td>
		  <td><input type="text" name="items[][unit]"/></td>
		  <td><input type="text" name="items[][product_code]"/></td>
		  <td><input type="text" name="items[][number]"/></td>
		  <td><input type="button"  value="移除条目"  onclick="removestockitem(event)"/></td>
		</tr>   
		<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td><span id="sum"></span></td>
		<td>&nbsp;</td>
		</tr>
		</table>
		
	<br />
	
		<table width="100%" border="0">
		<tr>
		<td>备注说明</td>
		</tr>
		<tr>
		<td><textarea name="note"></textarea></td>
		</tr>
		<tr>
		<td>出库人姓名{$Think.session.loginUserName}出库时间
		  <input class="date textInput readonly" format="yyyy-MM-dd HH:mm:ss" name="date" type="text" value="{:date('Y-m-d H:m:s')}" />出库单号{$number}<input type="hidden" name="number" value="{$number}" /></td>
		</tr>
		<tr>
		<td align="right"><input name="重置" type="reset" value="重置" /><input type="submit" value="提交" /><input type="button"  value="打印"/></td>
		</tr>
		</table>

	
	</div>
	<!--  分页显示区域 -->
	<div class="page"></div>
	<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</form>